home *** CD-ROM | disk | FTP | other *** search
/ AGA Toolkit '97 / The AGA Toolkit '97.iso / programming / c / make-3.75 / smakefile < prev    next >
Encoding:
Makefile  |  1996-09-07  |  8.0 KB  |  269 lines

  1. # NOTE: If you have no `make' program at all to process this makefile, run
  2. # `build.sh' instead.
  3. #
  4. # Copyright (C) 1988, 89, 91, 92, 93, 94, 1995 Free Software Foundation, Inc.
  5. # This file is part of GNU Make.
  6. #
  7. # GNU Make is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. #
  12. # GNU Make is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with GNU Make; see the file COPYING.  If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. #
  22. #    Makefile for GNU Make
  23. #
  24.  
  25. # Ultrix 2.2 make doesn't expand the value of VPATH.
  26. VPATH = /make-3.74/
  27. # This must repeat the value, because configure will remove `VPATH = .'.
  28. srcdir = /make-3.74/
  29.  
  30. CC = sc
  31. RM = delete
  32. MAKE = smake
  33.  
  34. CFLAGS =
  35. CPPFLAGS =
  36. LDFLAGS =
  37.  
  38. # Define these for your system as follows:
  39. #    -DNO_ARCHIVES        To disable `ar' archive support.
  40. #    -DNO_FLOAT        To avoid using floating-point numbers.
  41. #    -DENUM_BITFIELDS    If the compiler isn't GCC but groks enum foo:2.
  42. #                Some compilers apparently accept this
  43. #                without complaint but produce losing code,
  44. #                so beware.
  45. # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  46. # See also `config.h'.
  47. defines =
  48.  
  49. # Which flavor of remote job execution support to use.
  50. # The code is found in `remote-$(REMOTE).c'.
  51. REMOTE = stub
  52.  
  53. # If you are using the GNU C library, or have the GNU getopt functions in
  54. # your C library, you can comment these out.
  55. GETOPT = getopt.o getopt1.o
  56. GETOPT_SRC = $(srcdir)getopt.c $(srcdir)getopt1.c $(srcdir)getopt.h
  57.  
  58. # If you are using the GNU C library, or have the GNU glob functions in
  59. # your C library, you can comment this out.  GNU make uses special hooks
  60. # into the glob functions to be more efficient (by using make's directory
  61. # cache for globbing), so you must use the GNU functions even if your
  62. # system's C library has the 1003.2 glob functions already.  Also, the glob
  63. # functions in the AIX and HPUX C libraries are said to be buggy.
  64. GLOB = Lib glob/glob.lib
  65.  
  66. # If your system doesn't have alloca, or the one provided is bad, define this.
  67. ALLOCA = alloca.o
  68. ALLOCA_SRC = $(srcdir)alloca.c
  69.  
  70. # If your system needs extra libraries loaded in, define them here.
  71. # System V probably need -lPW for alloca.  HP-UX 7.0's alloca in
  72. # libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
  73. # alloca.c instead on those machines.
  74. LOADLIBES =
  75.  
  76. # Any extra object files your system needs.
  77. extras = amiga.o
  78.  
  79. # Common prefix for machine-independent installed files.
  80. prefix =
  81. # Common prefix for machine-dependent installed files.
  82. exec_prefix =
  83.  
  84. # Directory to install `make' in.
  85. bindir = sc:c
  86. # Directory to find libraries in for `-lXXX'.
  87. libdir = lib:
  88. # Directory to search by default for included makefiles.
  89. includedir = include:
  90. # Directory to install the Info files in.
  91. infodir = doc:
  92. # Directory to install the man page in.
  93. mandir = t:
  94. # Number to put on the man page filename.
  95. manext = 1
  96. # Prefix to put on installed `make' binary file name.
  97. binprefix =
  98. # Prefix to put on installed `make' man page file name.
  99. manprefix = $(binprefix)
  100.  
  101. # Whether or not make needs to be installed setgid.
  102. # The value should be either `true' or `false'.
  103. # On many systems, the getloadavg function (used to implement the `-l'
  104. # switch) will not work unless make is installed setgid kmem.
  105. install_setgid = false
  106. # Install make setgid to this group so it can read /dev/kmem.
  107. group = sys
  108.  
  109. # Program to install `make'.
  110. INSTALL_PROGRAM = copy
  111. # Program to install the man page.
  112. INSTALL_DATA = copy
  113. # Generic install program.
  114. INSTALL = copy
  115.  
  116. # Program to format Texinfo source into Info files.
  117. MAKEINFO = makeinfo
  118. # Program to format Texinfo source into DVI files.
  119. TEXI2DVI = texi2dvi
  120.  
  121. # Programs to make tags files.
  122. ETAGS = etags -w
  123. CTAGS = ctags -w
  124.  
  125. objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o    \
  126.        rule.o implicit.o default.o variable.o expand.o function.o    \
  127.        vpath.o version.o ar.o arscan.o signame.o remote-$(REMOTE).o     \
  128.        $(GLOB) $(GETOPT) $(ALLOCA) $(extras)
  129. srcs = $(srcdir)commands.c $(srcdir)job.c $(srcdir)dir.c             \
  130.        $(srcdir)file.c $(srcdir)getloadavg.c $(srcdir)misc.c         \
  131.        $(srcdir)main.c $(srcdir)read.c $(srcdir)remake.c             \
  132.        $(srcdir)rule.c $(srcdir)implicit.c $(srcdir)default.c        \
  133.        $(srcdir)variable.c $(srcdir)expand.c $(srcdir)function.c     \
  134.        $(srcdir)vpath.c $(srcdir)version.c                            \
  135.        $(srcdir)remote-$(REMOTE).c                                     \
  136.        $(srcdir)ar.c $(srcdir)arscan.c                                \
  137.        $(srcdir)signame.c $(srcdir)signame.h $(GETOPT_SRC)            \
  138.        $(srcdir)commands.h $(srcdir)dep.h $(srcdir)file.h            \
  139.        $(srcdir)job.h $(srcdir)make.h $(srcdir)rule.h                \
  140.        $(srcdir)variable.h $(ALLOCA_SRC) $(srcdir)config.h.in
  141.  
  142.  
  143. .SUFFIXES:
  144. .SUFFIXES: .o .c .h .ps .dvi .info .texinfo
  145.  
  146. all: make
  147. info: make.info
  148. dvi: make.dvi
  149. # Some makes apparently use .PHONY as the default goal if it is before `all'.
  150. .PHONY: all check info dvi
  151.  
  152. make.info: make.texinfo
  153.     $(MAKEINFO) -I$(srcdir) $(srcdir)make.texinfo -o make.info
  154.  
  155. make.dvi: make.texinfo
  156.     $(TEXI2DVI) $(srcdir)make.texinfo
  157.  
  158. make.ps: make.dvi
  159.     dvi2ps make.dvi > make.ps
  160.  
  161. make: $(objs) glob/glob.lib
  162.     $(CC) Link $(LDFLAGS) $(objs) $(LOADLIBES) To make.new
  163.     -delete quiet make
  164.     rename make.new make
  165.  
  166. # -I. is needed to find config.h in the build directory.
  167. .c.o:
  168.     $(CC) $(defines) IDir "" IDir $(srcdir)glob \
  169.           $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
  170.  
  171. glob/glob.lib:
  172.     execute <<
  173.         cd glob
  174.         smake
  175. <
  176.  
  177. tagsrcs = $(srcs) $(srcdir)remote-*.c
  178. TAGS: $(tagsrcs)
  179.     $(ETAGS) $(tagsrcs)
  180. tags: $(tagsrcs)
  181.     $(CTAGS) $(tagsrcs)
  182.  
  183. .PHONY: install installdirs
  184. install:
  185.     copy make sc:c
  186.  
  187. loadavg: loadavg.c config.h
  188.     $(CC) $(defines) -DTEST -I. -I$(srcdir) $(CFLAGS) $(LDFLAGS) \
  189.           loadavg.c $(LOADLIBES) -o $@
  190.  
  191. clean: glob-clean
  192.     -$(RM) -f make loadavg *.o core make.dvi
  193.  
  194. distclean: clean glob-realclean
  195.     -$(RM) -f Makefile config.h config.status build.sh stamp-config
  196.     -$(RM) -f config.log config.cache
  197.     -$(RM) -f TAGS tags
  198.     -$(RM) -f make.?? make.??s make.log make.toc make.*aux
  199.     -$(RM) -f loadavg.c
  200.  
  201. realclean: distclean
  202.     -$(RM) -f make.info*
  203.  
  204. mostlyclean: clean
  205.  
  206. .PHONY: glob-clean glob-realclean
  207.  
  208. glob-clean glob-realclean:
  209.     execute <<
  210.     cd glob
  211.     smake $@
  212. <
  213.  
  214. # The automatically generated dependencies below may omit config.h
  215. # because it is included with ``#include <config.h>'' rather than
  216. # ``#include "config.h"''.  So we add the explicit dependency to make sure.
  217. $(objs): config.h
  218.  
  219. # Automatically generated dependencies will be put at the end of the file.
  220.  
  221. # Automatically generated dependencies.
  222. commands.o : commands.c make.h dep.h commands.h file.h variable.h job.h
  223.  
  224. job.o: job.c make.h commands.h job.h file.h variable.h
  225.  
  226. dir.o: dir.c make.h
  227.  
  228. file.o: file.c make.h commands.h dep.h file.h variable.h
  229.  
  230. misc.o: misc.c make.h dep.h
  231.  
  232. main.o: main.c make.h commands.h dep.h file.h variable.h job.h getopt.h
  233.  
  234. read.o: read.c make.h commands.h dep.h file.h variable.h glob/glob.h
  235.  
  236. remake.o: remake.c make.h commands.h job.h dep.h file.h
  237.  
  238. rule.o : rule.c make.h config.h commands.h dep.h file.h variable.h rule.h
  239.  
  240. implicit.o : implicit.c make.h rule.h dep.h file.h
  241.  
  242. default.o: default.c make.h rule.h dep.h file.h commands.h variable.h
  243.  
  244. variable.o : variable.c make.h commands.h variable.h dep.h file.h
  245.  
  246. expand.o: expand.c make.h commands.h file.h variable.h
  247.  
  248. function.o: function.c make.h variable.h dep.h commands.h job.h
  249.  
  250. vpath.o : vpath.c make.h file.h variable.h
  251.  
  252. version.o: version.c
  253.  
  254. ar.o : ar.c make.h file.h dep.h
  255.  
  256. arscan.o: arscan.c make.h
  257.  
  258. signame.o: signame.c signame.h
  259.  
  260. remote-stub.o : remote-stub.c make.h commands.h
  261.  
  262. getopt.o: getopt.c getopt.h
  263.  
  264. getopt1.o : getopt1.c getopt.h
  265.  
  266. getloadavg.o: getloadavg.c
  267.  
  268. amiga.o: amiga.c make.h
  269.